/* PlatformLogin页面样式 - 使用全局主题色#1890ff */

:root {
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --primary-active: #096dd9;
  --primary-light: rgba(24, 144, 255, 0.1);
  --primary-shadow: rgba(24, 144, 255, 0.3);
  --primary-shadow-hover: rgba(24, 144, 255, 0.4);
}

/* 确保登录页面样式优先级最高 */
.business-theme .login-container,
.login-container {
  min-height: 100vh !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* 背景装饰元素 */
.business-theme .login-background,
.login-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.business-theme .bg-shape,
.bg-shape {
  position: absolute !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(64, 169, 255, 0.05) 100%) !important;
  animation: float 6s ease-in-out infinite !important;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

.bg-shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.login-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-brand {
  text-align: center;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out;
  position: relative;
}

.brand-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 8px 32px var(--primary-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  animation: logoFloat 3s ease-in-out infinite;
}

.brand-logo:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 48px var(--primary-shadow-hover);
}

.brand-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite alternate;
  z-index: 1;
}

.platform-logo {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  box-shadow: 0 8px 32px var(--primary-shadow) !important;
}

.platform-logo:hover {
  box-shadow: 0 12px 48px var(--primary-shadow-hover) !important;
}

.brand-text {
  margin-bottom: 20px;
}

.brand-title {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  font-size: 32px !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.8px;
  background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-hover) 25%, var(--primary-color) 50%, var(--primary-hover) 75%, var(--primary-color) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 3s ease-in-out infinite;
}

.brand-subtitle {
  color: #595959 !important;
  font-size: 16px !important;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.5px;
  animation: subtitleFade 2s ease-in-out infinite alternate;
}

.brand-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  margin: 0 auto;
  border-radius: 2px;
  animation: dividerExpand 2s ease-in-out infinite alternate;
}

.business-theme .login-card,
.login-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--primary-light) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px var(--primary-light) !important;
  padding: 40px 32px !important;
  animation: slideUp 0.8s ease-out 0.2s both !important;
}

/* 登录模式切换 */
.login-mode-switch {
  margin-bottom: 24px;
  text-align: center;
}

.mode-button {
  height: 40px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

.mode-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px var(--primary-light) !important;
}

.mode-button.ant-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  border-color: var(--primary-color) !important;
}

.mode-button.ant-btn-default {
  background: #ffffff !important;
  border-color: #d9d9d9 !important;
  color: #595959 !important;
}

.mode-button.ant-btn-default:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  color: #262626 !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  margin-bottom: 8px !important;
}

.login-description {
  color: #595959 !important;
  font-size: 14px !important;
  line-height: 1.5;
}

.login-form {
  margin-bottom: 16px;
}

.business-theme .login-input,
.login-input {
  height: 48px !important;
  border-radius: 12px !important;
  border: 2px solid #f0f0f0 !important;
  background: #ffffff !important;
  transition: all 0.3s ease !important;
  font-size: 16px !important;
}

.business-theme .login-input:focus,
.login-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px var(--primary-light) !important;
}

.business-theme .login-input:hover,
.login-input:hover {
  border-color: var(--primary-hover) !important;
}

.input-prefix-icon {
  color: #8c8c8c !important;
  transition: color 0.3s ease !important;
}

.login-input:focus .input-prefix-icon {
  color: var(--primary-color) !important;
}

.business-theme .login-button,
.login-button {
  height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  box-shadow: 0 4px 16px var(--primary-shadow) !important;
  transition: all 0.3s ease !important;
}

.business-theme .login-button:hover,
.login-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px var(--primary-shadow-hover) !important;
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%) !important;
}

.business-theme .login-button:active,
.login-button:active {
  transform: translateY(0) !important;
}

.business-theme .platform-login-button,
.platform-login-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  box-shadow: 0 4px 16px var(--primary-shadow) !important;
}

.business-theme .platform-login-button:hover,
.platform-login-button:hover {
  box-shadow: 0 8px 24px var(--primary-shadow-hover) !important;
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%) !important;
}

.business-theme .ant-form-item-label > label,
.ant-form-item-label > label {
  color: #262626 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.remember-checkbox {
  color: #595959 !important;
  font-size: 14px !important;
}

.remember-checkbox .ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.forgot-password-link {
  color: var(--primary-color) !important;
  padding: 0 !important;
  font-size: 14px !important;
  transition: color 0.3s ease !important;
}

.forgot-password-link:hover {
  color: var(--primary-hover) !important;
}

.login-footer {
  text-align: center;
  margin-top: 16px;
}

.footer-text {
  color: #8c8c8c !important;
  font-size: 12px !important;
}

.platform-login-link,
.standard-login-link {
  color: #595959 !important;
  font-size: 12px !important;
  transition: color 0.3s ease !important;
}

.platform-login-link:hover,
.standard-login-link:hover {
  color: var(--primary-color) !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes titleShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes subtitleFade {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.9;
  }
}

@keyframes dividerExpand {
  0% {
    width: 40px;
    opacity: 0.5;
  }
  100% {
    width: 80px;
    opacity: 1;
  }
}

.login-input:focus {
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.login-button:active {
  animation: buttonClick 0.1s ease;
}

@keyframes buttonClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}